Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TaskContext to tasks to be track e2e instant transfer information #203

Closed
wants to merge 1 commit into from

Conversation

hussainkarafallah
Copy link
Contributor

@hussainkarafallah hussainkarafallah commented Aug 8, 2024

Context

TwTasks is missing propagated context. For example if a service receives a REST call and registers a tw-task as a side effect. This task loses the context. Adding TaskContext to the tw_task_data table. Shall be good enough.

One complication here:
The data column has non null constraint. Adding the context to this table is problematic now. Before, tasks with null data were not inserting anything in that table. But now it's quite reasonable to assume we might have tasks with no data but with some context. For tasks with no data, adding a dummy data in db of 1 byte "®"

IF some team creates a tw-tasks with the payload of this letter only. They might run into issues.

Checklist

@hussainkarafallah hussainkarafallah requested a review from a team as a code owner August 8, 2024 21:56
@hussainkarafallah hussainkarafallah changed the title hey Add TaskContext to tasks to be track e2e instant transfer information Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant